<template>
	<view class="no-data-con">
		<view class="no-data">
			<image :src='noDataImg'></image>
		</view>
		<view class="no-data-text">{{text}}</view>
	</view>
</template>

<script>
	export default {
		name: "no-data",
		props: {
			text: {
				type: String,
				default: '暂无数据'
			},
			noDataImg:{
				type:String,
				default:'/static/no-data.png'
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.no-data-con {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.no-data {
		width:400rpx;
		height:400rpx;
		image {
			width: 100%;
			height: 100%;
			display: block;
		}
	}

	.no-data-text {
		color: #AFB0B2;
		text-align: center;
		padding-top: 10rpx;
	}
</style>